Revamp the project - #542
Merged
Merged
Conversation
- update serverless `^2` to osls `^3` - fix internal API imports for osls v3 compatibility (`zip-service`, `package-service`) - update all test fixtures to use `frameworkVersion: '3'` - remove deprecated serverless-plugin-ncc support and related dependencies - clean up benchmark logic to compare only `tree-shake` vs default
sergioramos
force-pushed
the
revamp
branch
3 times, most recently
from
July 9, 2025 22:50
2f5ae3c to
a32f134
Compare
- add default `biome.json` configuration - update `lint-staged` to use `biome` commands - upgrade to `husky^9` - remove `.eslintignore` and `.prettierignore` files - update GitHub Actions workflow to use `biome`
- `actions/checkout@v3` → `@v4` - `actions/setup-node@v3.2.0` → `@v4` - remove `actions/cache@v3.0.2` (replaced by native caching) - `wagoid/commitlint-github-action@v4.1.12` → `@v6` - `biomejs/setup-biome@v2.5.0` → `@v2` - `rlespinasse/github-slug-action@4.2.4` → `@v5` - `ridedott/release-me-action@v3.6.39` → `@v3` - `JS-DevTools/npm-publish@v1` → `@v3`
Converts the entire codebase from CommonJS to ES modules for modern Node.js compatibility. Core changes: - Add `"type": "module"` and `"exports"` field to package.json - Convert all `require()` statements to `import`/`export` syntax - Replace `__dirname`/`__filename` with `import.meta` equivalents - Implement hybrid module system for serverless framework compatibility Technical implementation: - Use `createRequire()` for problematic CommonJS dependencies (`apr-*`, `@vercel/nft`) - Maintain runtime detection for optional dependencies (`typescript`, `@yarnpkg/pnpify`) - Replace deprecated `fs.exists` with custom async implementation - Update all test fixtures to ES modules while keeping serverless.js as CommonJS - Fix identifier collisions and import path resolution issues
- replace `ava` with native Node.js `node --test` - use native snapshot testing with `t.assert.snapshot()` - remove custom snapshot logic and files - replace deprecated `fs.rmdir` with `fs.rm`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
^2to osls^3:zip-service,package-service)frameworkVersion: '3'tree-shakevs defaulteslint+prettiertobiomebiome.jsonconfigurationlint-stagedto usebiomecommandshusky^9.eslintignoreand.prettierignorefilesbiomeactions/checkout@v3→@v4actions/setup-node@v3.2.0→@v4actions/cache@v3.0.2(replaced by native caching)wagoid/commitlint-github-action@v4.1.12→@v6biomejs/setup-biome@v2.5.0→@v2rlespinasse/github-slug-action@4.2.4→@v5ridedott/release-me-action@v3.6.39→@v3JS-DevTools/npm-publish@v1→@v3@commitlint/*to^19@vercel/nftto^0.29typescript^5archiver^7credits to @atkhalsa who already did some of this on #423
fixes #403